package com.personal.service;

import com.github.pagehelper.PageInfo;
import com.personal.pojo.TCoach;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CoachService {
//个人中心
    //教练登录
    TCoach login(String logname,String password);
    //教练修改个人信息
    int editOneself(TCoach coach);
    //根据教练id查询教练信息
    TCoach findBycoachId(Integer coachid);
    //根据id删除预约到期的会员预约记录
    int deleteMem(Integer reserveid);
//课程模块
    //查询状态为未结束的所有课程
    PageInfo findNotEnd(int pageNum,int pageSize);
    //多条件查询，教练功能，查未结束的课程
    PageInfo findByTimeName(int pageNum,int pageSize,Integer weekid,Integer sectionid,String coursename);
    //根据coachid查询
    List findByCoachid(Integer coachid);
//教室模块
    //查询所有教室
    PageInfo findClassroom(int pageNum,int pageSize);
    //多条件查询教室
    PageInfo findByCluase(int pageNum,int pageSize,String classroomtype, Integer min, Integer max, String classroomName);
    //根据教练id查询教练名下的所有会员
    List findAllMem(Integer coachid);
}
